import {ScrollView, View, Text, Image} from '@tarojs/components';
import React, {Component} from 'react';
import Taro, {getCurrentInstance} from '@tarojs/taro';
import {connect} from 'react-redux';
import './index.less';
import * as T from './types';
import actions from './actions';
import {store2Props} from './selectors';
import CenterBox from '../components/centerBox';

actions().actions.loadReducer();
// @ts-ignore
@connect<Partial<T.IProps>, any>(store2Props, actions)
export default class Index extends Component<Partial<T.IProps>, any> {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {}

  componentDidShow() {}

  componentWillUnmount() {
    this.props.actions.clean();
  }

  render() {
    return (
      <ScrollView className="packageUCMallOrders" scrollY>
        <CenterBox />
      </ScrollView>
    );
  }
}
